package com.aaa.mapper;


import com.aaa.entity.ContractRent;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author auto
 * @since 2021-01-29
 */
@Mapper
@Repository
public interface ContractRentMapper extends BaseMapper<ContractRent> {

    List<ContractRent> listAllRentPublic();

    List<ContractRent> listAllRentElse();


    int addRentPublic(ContractRent contract);

    int addRentElse(ContractRent contract);

    int updateRent(ContractRent contract);

}
